<?php
/**
 * Created by PhpStorm.
 * User: hedx
 * Date: 2016/3/16
 * Time: 15:00
 */

namespace business\search\models;


use yii\mongodb\ActiveRecord;

/**
 * Class SearchRecordModel
 * @package business\search\models
 * @property string userId
 * @property string userType
 * @property string keyword
 * @property string analysisKeyword
 * @property string resultRows
 * @property string searchModule
 * @property string source
 * @property string ipAddress
 * @property string searchDate
 */
class SearchRecordModel extends ActiveRecord
{

    public static function collectionName()
    {
        return ["b2b_search", "searchRecord"];
    }

    public function attributes()
    {
        return [
            '_id',
            'userId',
            'userType',
            'keyword',
            'analysisKeyword',
            'resultRows',
            'searchModule',
            'source',
            'ipAddress',
            'searchDate'
        ];
    }

}